package cn.billy.controller;

import cn.billy.domain.User;
import cn.billy.feign.UserFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class PayController {

    @Autowired
    private UserFeign userFeign;

    @GetMapping("/pay/{id}")
    public User getById(@PathVariable Long id){
        return userFeign.getById(id);
    }
}
